//
//  CityWarningButton.m
//  AirQuality
//
//  Created by Po on 15/7/29.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import "CityWarningButton.h"

@implementation CityWarningButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubview:[self getMyTittleLabel]];
    }
    return self;
}

- (UILabel *)getMyTittleLabel
{
    if (!_myTittleLabel) {
        _myTittleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.frame.size.height - 25, self.frame.size.width, 20)];
        [_myTittleLabel setTextAlignment:NSTextAlignmentCenter];
        [_myTittleLabel setTextColor:[UIColor whiteColor]];
        [_myTittleLabel setFont:[UIFont systemFontOfSize:18]];

    }
    return _myTittleLabel;
}
@end
